﻿/* ****************************************************************************
 *
 * Copyright (c) Microsoft Corporation. 
 *
 * This source code is subject to terms and conditions of the Microsoft Public License. A 
 * copy of the license can be found in the License.html file at the root of this distribution. If 
 * you cannot locate the  Microsoft Public License, please send an email to 
 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
 * by the terms of the Microsoft Public License.
 *
 * You must not remove this notice, or any other, from this software.
 *
 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
 * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
 * PARTICULAR PURPOSE.
 * ***************************************************************************/

#pragma once


// PGLISAPIDemo.h - Fichier d'en-t阾e pour votre Internet Information Server
//    PGLISAPIDemo Extension

#include "resource.h"

class CPGLISAPIDemoExtension : public CHttpServer
{
public:
	CPGLISAPIDemoExtension();
	~CPGLISAPIDemoExtension();

	// Overrides
public:
	virtual BOOL GetExtensionVersion(HSE_VERSION_INFO* pVer);
	virtual BOOL TerminateExtension(DWORD dwFlags);

	// TODO? ajoutez ici les gestionnaires pour vos commandes.
	// Par exemple?

	void Default(CHttpServerContext* pCtxt);
	void GetDemo(CHttpServerContext* pCtxt, LPTSTR pszName, int iWidth, int iHeight, LPTSTR szImageType);

	DECLARE_PARSE_MAP()
protected:
	gfxinterface::CGDIpInitializer m_GDIpInitializer;
};
